package poker;
import items.Table;
import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JTextField;
import javax.swing.JButton;
public class StartScreen extends JFrame {
	private JLabel item1;
	private JButton item5;
public StartScreen(){
	super("Michael's Poker Program");
	setLayout(new FlowLayout());
	item1 = new JLabel("Created By Michael Timmons");
	add(item1);
	item5 = new JButton("Table");
	add(item5);
	TheHandler Handler = new TheHandler();
	item5.addActionListener(Handler);
}
private class TheHandler implements ActionListener{
	public void actionPerformed(ActionEvent Event){
		 if (Event.getSource() == item5){
			 javax.swing.SwingUtilities.invokeLater(new Runnable() {
		     public void run() {
		     Table.createAndShowGUI();}});
	}
}
}
public static void createAndShowGUI(){
	StartScreen TheGUI = new StartScreen();
	TheGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	TheGUI.setSize(400,200);
	TheGUI.setVisible(true);
}
}


